-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code4rena deploy #139
Merged
Merged
Code4rena deploy #139
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… with dust limit when amount represents cash
…o totalCollateral * credit / totalDebt
* c4-001 Wrong decimal conversion in liquidation protocol split (#118) * c4-002 Wrong crLiquidation cap in overdue liquidation (#119) * c4-003 Wrong fragmentationFee check in Compensate means it is never charged (#120) * c4-004 Chainlink heartbeats are different on Base and Ethereum mainnet (#123) * c4-004 Chainlink heartbeats are different on Base and Ethereum mainnet * Remove old code * Add base and mainnet parameters * Add base sequencer uptime * c4-005 Users below crOpening cannot withdraw cash (#124) * c4-006 DoS in market orders due to incorrect params.amount comparison… (#125) * c4-006 DoS in market orders due to incorrect params.amount comparison with dust limit when amount represents cash * Remove params.amount > credit comparison * c4-007 Supply caps can be bypassed due to incorrect balanceOf (#126) * c4-008 Variable Pool liquidity check should validate balance of aToken, not Pool (#127) * c4-010 Compensate is prevented if user is underwater (#129) * c4-010 Compensate is prevented if user is underwater * Add missing import * Remove old code * c4-011 Compensate ignores forSale after credit split (#130) * c4-012 getCreditPositionProRataAssignedCollateral can be simplified to totalCollateral * credit / totalDebt (#131) * c4-013 Liquidate does not have deadline protection (#132) * c4-013 Liquidate does not have deadline protection * Remove duplicate check * c4-014 BuyCreditMarket returns incorrect value for liquidity check (#133) * c4-015 SelfLiquidation check can be simplified (#134) * c-015 SelfLiquidation check can be simplified * Remove unused error * c4-016 Documentation fixes (#135) * c4-016 Documentation fixes * Minor documentation/error fixes * Improve docs for swap fee * c4-009 Variable Pool liquidity check can be bypassed with a sandwitch attack (#128) * c4-017 BorrowOffers do not have a maxDueDate (#136) * c4-017 BorrowOffers do not have a maxDueDate * Add maxDueDate to LiquidateWithReplacement * Create validateLimitOrder function * pure -> view * c4-018 Wrong fee calculation in SellCreditMarket + exactAmountOut (#137) * c4-019 Refactor fee calculation in AccountingLibrary.getCashAmountOut (#138) * c4-019 Refactor fee calculation in AccountingLibrary.getCashAmountOut * Validate WETH * Chainlink sequencer feed returns startedAt 0 if down (#140) * c4-021 Add borrower to RepayStruct to avoid MEV (#141) * c4-021 Add borrower to RepayStruct to avoid MEV * Fix typo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a deployment branch with preliminary Code4rena fixes